public class GxLanguageManager
GxLanguageManager.bbj
The language manager will add, remove language files to the grid.
The grid will query the language manager in every render to get the translation keys.
Note Changing the language in the language manager will not automatically trigger a grid re-render.
Modifier and Type | Field and Description |
---|---|
BBjString | Language$ |
HashMap | Languages! |
HashMap | LoadedLanguages! |
Constructor and Description |
---|
GxLanguageManager() GxLanguageManager Construct a new GxLanguageManager instance |
Modifier and Type | Method and Description |
---|---|
void | add(BBjString language$, BBjString path$) Add Language File This method can be used for new languages, or to overrule the default translation file that is shipped with the grid plugin |
BBjString | getLanguage() Get the selected language |
BBjString | getLanguageKeys() Get the language keys Get the translation keys as JSON string |
BBjString | getLanguageKeys(BBjString language$) Get the language keys Get the translation keys as JSON string |
void | remove(BBjString language$) Remove an added language |
public BBjString Language$
public HashMap Languages!
public HashMap LoadedLanguages!
public GxLanguageManager()
GxLanguageManager
Construct a new GxLanguageManager instance
public void add(BBjString language$, BBjString path$)
Add Language File This method can be used for new languages, or to overrule the default translation file that is shipped with the grid plugin
BBjString
language$ the language key (ex: de_DE)BBjString
path$ the language file (JSON file)public BBjString getLanguage()
Get the selected language
public BBjString getLanguageKeys()
Get the language keys
Get the translation keys as JSON string
public BBjString getLanguageKeys(BBjString language$)
Get the language keys
Get the translation keys as JSON string
public void remove(BBjString language$)
Remove an added language
BBjString
language$ the language key (ex: de_DE)